﻿/*
SINACOR - BMF&Bovespa
Arquivo: Assessor.cs
Criado em: 01-mar-2010 15:38:22
Arquiteto Responsável: p-wgeneroso
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using Sinacor.Infra.Service.Validation;
using Sinacor.Infra.Service.Common;
using Sinacor.Infra.Common.Exceptions;
using Sinacor.Infra.Service.ExceptionHandling;

namespace Sinacor.Servico.Bovespa.Cliente.BusinessLogic {

	public class Assessor : BaseBusinessLogic {

		#region Construtores 
		public Assessor(){} 
		#endregion Construtores

		#region Métodos 
		/// <summary>
		/// Consulta lista de assessores conforme filtro de pesquisa
		/// </summary>
		/// <param name="entity"></param>
		public List<BusinessEntity.Assessor> ConsultarAssessores(BusinessEntity.Parameter.FiltroAssessor entity){
			
            ResourceAccess.Assessor assessorResourceAccess = new ResourceAccess.Assessor();
            List<BusinessEntity.Assessor> assessores = assessorResourceAccess.ConsultarAssessores(entity);
            return assessores;

		}
		/// <summary>
		/// Obtem um assessor pela chave
		/// </summary>
		/// <param name="entity"></param>
		public BusinessEntity.Assessor ObterAssessor(BusinessEntity.Parameter.FiltroAssessorChave entity){

            ResourceAccess.Assessor assessorResourceAccess = new ResourceAccess.Assessor();
            BusinessEntity.Assessor assessor = assessorResourceAccess.ObterAssessor(entity);
            return assessor;
		} 
		#endregion Métodos 
	}
}